import wx

class wxclass(wx.Frame):
    def __init__(self,paranet,id):
        wx.Frame.__init__(self,paranet,id, 'Window', size=(300,200))   
        panel=wx.Panel(self)
        
        box1 = wx.MessageDialog(None,'Yes or No?','Title', wx.YES_NO)
        answer1=box1.ShowModal()
        box1.Destroy()
        
        box2 = wx.MessageDialog(None,'Ok?','Title', wx.OK)
        answer2=box2.ShowModal()
        box2.Destroy()
        
if __name__ == "__main__":
    app=wx.PySimpleApp()
    frame=wxclass(paranet=None, id=1)
    frame.Show()
    app.MainLoop()